sorted and rotated arrays

join shbcf.ru